﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace VoiceTestPlatform
{
    /// <summary>
    /// ArtificialWindow.xaml 的交互逻辑
    /// </summary>
    public partial class ArtificialWindow : Window
    {
        public ArtificialWindow()
        {
            InitializeComponent();
            this.Loaded += ArtificialWindow_Loaded;
        }

        void ArtificialWindow_Loaded(object sender, RoutedEventArgs e)
        {
            ResultManager.ArtificialResults.Clear();
        }

        private void AddResutl_Click(object sender, RoutedEventArgs e)
        {
            ResultManager.ArtificialResults.Add(
                new TestResult() {
                    TestDate = DateTime.Now.ToString(),
                    Recognition = "我好，这是测试结果",
                    BackSound = "test.wav",
                    AngelText = ParameterManager.ArAngelText,
                    DistanceText = ParameterManager.ArDistanceText,
                    NoiseText = ParameterManager.ArNoiseText                    
                });
        }
    }
}
